package com.travel.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.travel.pojo.Cars;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "车辆返回",description = "用来返回根据dto查询的数据")
public class LookForCarVo{
    /**
     * 汽车套餐表id
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 所在城市id
     */
    @TableField(value = "city_id")
    private Integer cityId;

    /**
     * 汽车id
     */
    @TableId(value = "id")
    private Integer carid;

    /**
     * 汽车名
     */
    @TableField(value = "carName")
    private String carName;

    /**
     * 汽车类型
     */
    @TableField(value = "car_type")
    private String carType;

    /**
     * 座位数量
     */
    @TableField(value = "seats")
    private Integer seats;

    /**
     * 车门数量
     */
    @TableField(value = "doors")
    private Integer doors;

    /**
     * 手动挡还是自动挡
     */
    @TableField(value = "driving_style")
    private String drivingStyle;

    /**
     * 发动机排量
     */
    @TableField(value = "engine_capacity")
    private Double engineCapacity;

    /**
     * 汽车品牌
     */
    @TableField(value = "car_brand")
    private String carBrand;

    /**
     * 套餐价格
     */
    @ApiModelProperty(value = "套餐价格" ,required = false, example = "100")
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 牌照
     */
    @ApiModelProperty(value = "牌照" ,required = false, example = "浙A牌")
    @TableField(value = "photograph")
    private String photograph;

    /**
     * 汽车图片
     */
    private List<String> images;

    @Override
    public String toString() {
        return "LookForCarVo{" +
                "id=" + id +
                ", cityId=" + cityId +
                ", carid=" + carid +
                ", carName='" + carName + '\'' +
                ", carType='" + carType + '\'' +
                ", seats=" + seats +
                ", doors=" + doors +
                ", drivingStyle='" + drivingStyle + '\'' +
                ", engineCapacity=" + engineCapacity +
                ", carBrand='" + carBrand + '\'' +
                ", price=" + price +
                ", photograph='" + photograph + '\'' +
                ", images=" + images +
                '}';
    }
}
